package com.example.springboot_jxc_0511.jxc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.springboot_jxc_0511.jxc.entity.Sale;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gongxl
 * @since 2021-05-11
 */
public interface ISaleService extends IService<Sale> {
    /**
     * 计算总价
     * @return
     */
    public BigDecimal getQuantity(Sale sale);

    List<Sale> getSaleListByPage(IPage page, Sale sale);
}
